package com.wm.builder;

/**
 * @ClassName: ComputerDirector
 * @Description: 电脑装配
 * @Author: WM
 * @Date: 2023/2/2 13:34
 */
public class ComputerDirector {

    public Computer constructComputer(ComputerBuilder computerBuilder) {
        computerBuilder.buildMemory();
        computerBuilder.buildCpu();
        computerBuilder.buildDisk();
        return computerBuilder.buildComputer();
    }
}
